﻿namespace AlgorithmInterview.Chapter02._07;

public class User
{
    public int Id { get; set; } // 唯一标识一个用户
    public string Name { get; set; }
    public int Seq { get; set; }

    public User(int id, string name)
    {
        this.Id = id;
        this.Name = name;
    }

    public bool Equals(User o)
    {
        return this.Id == o.Id;
    }

    public string ToString()
    {
        return "id:" + this.Id + " name:" + this.Name + " seq:" + this.Seq;
    }
}